package com.hice.demo.sbdbra.config;

import org.apache.activemq.command.ActiveMQQueue;
import org.apache.activemq.command.ActiveMQTopic;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.jms.listener.DefaultMessageListenerContainer;

import javax.jms.Queue;
import javax.jms.Topic;

/**
 * @author 翟永超
 * @create 2016/9/25.
 * @blog http://blog.didispace.com
 */
@Configuration
public class ActiveMQConfig {

    @Bean(name = "queue")
    public Queue queue() {
        return new ActiveMQQueue("sample.queue");
    }

    @Bean(name = "topic")
    public Topic topic() {
        return new ActiveMQTopic("sample.topic");
    }

}
